package com.kaifa.test;

public class ShengDanDemo {
    public static void main(String[] args) {
        int yezi = 10;
        int gen = 2;
        int ii = yezi-1;
        for (int i =1; i<=yezi;i++){
            ii--;
            for (int j =0;j<=ii;j++){
                System.out.print(" ");
            }
            for (int j =1;j<=((i*2)-1);j++){
                System.out.print("*");
            }
            System.out.println("");
        }
        System.out.println("    圣诞节快乐");
        for (int e=1;e<=gen;e++){
            for (int g =1;g<yezi;g++){
                System.out.print(" ");
            }
            System.out.println("*");
        }
    }
}
